package com.jourwon.util.test.json;

import java.io.Serializable;
import java.util.Date;

/**
 * Description: 用户
 * 
 * @author JourWon
 * @since 2018/6/3
 */
public class User implements Serializable {

	/**
	 * 
	 */
	private static final long serialVersionUID = -1223485586310656073L;

	/**
	 * 用户名
	 */
	private String username;

	/**
	 * 年龄
	 */
	private Integer age;

	/**
	 * 性别,0表示女生,1表示男生
	 */
	private int gender;

	/**
	 * 出生日期
	 */
	private Date birthday;

	public User() {
	}

	public User(String username, Integer age, int gender, Date birthday) {
		super();
		this.username = username;
		this.age = age;
		this.gender = gender;
		this.birthday = birthday;
	}

	public String getUsername() {
		return username;
	}

	public void setUsername(String username) {
		this.username = username;
	}

	public Integer getAge() {
		return age;
	}

	public void setAge(Integer age) {
		this.age = age;
	}

	public int getGender() {
		return gender;
	}

	public void setGender(int gender) {
		this.gender = gender;
	}

	public Date getBirthday() {
		return birthday;
	}

	public void setBirthday(Date birthday) {
		this.birthday = birthday;
	}

	@Override
	public String toString() {
		return "User [username=" + username + ", age=" + age + ", gender=" + gender + ", birthday=" + birthday + "]";
	}

}
